import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'

Vue.config.productionTip = false

// 引入全局的公共样式
import "@/styles/index.scss/"

// 全局混入
import '@/utils/mixins'


// 引入vant
// import Vue from 'vue';
import Vant from 'vant';
import 'vant/lib/index.css'

// axios
import {axios} from '@/API/request'
Vue.prototype.$axios =axios;

// 全局的ajax
import {ajax} from "@/API/index"
Vue.prototype.$ajax=ajax

// 全局注册组件
import "@/components"

//淘宝适配
import "lib-flexible"
Vue.use(Vant)
new Vue({
  //挂载到根实例
  router,//this.$router
  store,
  render: h => h(App)
}).$mount('#app')
